const runtime.maxAlloc
16 uses
runtime (current package)
chan.go#L84: if overflow || mem > maxAlloc-hchanSize || size < 0 {
malloc.go#L225: maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
malloc.go#L1278: if overflow || mem > maxAlloc || n < 0 {
map.go#L306: if overflow || mem > maxAlloc {
slice.go#L43: if overflow || tomem > maxAlloc || tolen < 0 {
slice.go#L90: if overflow || mem > maxAlloc || len < 0 || len > cap {
slice.go#L97: if overflow || mem > maxAlloc || len < 0 {
slice.go#L224: overflow = uintptr(newcap) > maxAlloc
slice.go#L230: overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
slice.go#L243: overflow = uintptr(newcap) > (maxAlloc >> shift)
slice.go#L266: if overflow || capmem > maxAlloc {
string.go#L297: if uintptr(size) > maxAlloc/4 {
string.go#L316: if n < 0 || uintptr(n) > maxAlloc {
string.go#L424: p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
string.go#L462: p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
string.go#L479: str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)